package wikisearch.similarity;

abstract public class ScoreFunction {

	/**
	 * 
	 * @param first first document
	 * @param fbeginIdx beginning portion of which part it should be used
	 * @param fendIdx end portion of which part of documente it should be used (last idx)
	 * @param second second document
	 * @param sbeginIdx beginning portion of which part of document it should be used
	 * @param sendIdx end portion of which part of document it should be used (last idx)
	 * @return score
	 */
	abstract public double calculateScore(String [] first, int fbeginIdx, int fendIdx, 
											String [] second, int sbeginIdx, int sendIdx);
}
